﻿using System;
using System.Windows.Forms;
using MobileCommissionManagement.Controls;

namespace MobileCommissionManagement
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Controller controller = new Controller();
            VodafoneController vodafoneController = new VodafoneController();
            Login login = new Login();
            login.Controller = controller;
            if (login.ShowDialog() == DialogResult.Cancel)
                return;
            Main main = new Main();
            main.Controller = controller;
            main.VodafoneController = vodafoneController;
            Application.Run(main);
        }
    }
}
